<div class="centercontent tables">
<div class="pageheader notab">
<h1 class="pagetitle"></h1>

<span class="pagedesc"></span> 
</div>
<div id="contentwrapper" class="contentwrapper">
<div class="contenttitle2">
<h3>Edit status anggota</h3>
</div>
<?php if($anggota->num_rows() > 0) {?>
<form class="stdform" action="<?php echo base_url().'index.php/anggota/ganti_status'?>" method="post">
                       <?php foreach($anggota->result() as $rows){ ?>
							<p>
							<span style="margin-left:250px">
							<div><img src="<?php echo base_url().$foto=$rows->foto_anggota?>" width="10%" height="10%"></div>
							
							</span>
							</p>
					   
							<p style="margin-left:-250px">
								<span style="margin-left:250px">Nama</span>
								<span class="field" style="margin-left:250px"><input disabled="disabled" name="nama" class="mediuminput" type="text" value="<?php $nama=$rows->nama_anggota; echo $nama;?>"/></span>
							</p>
							
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">NRP</span>
								<span class="field" style="margin-left:250px"><input disabled="disabled" name="nrp" class="mediuminput" type="text" value="<?php echo $rows->id_anggota; ?>" /><input name="nrpa" class="mediuminput" type="hidden" value="<?php echo $rows->id_anggota; ?>" /></span>
							
              </p>
							
							 <p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Nomor Telepon</span>
								<span class="field" style="margin-left:250px"><input disabled="disabled" name="telepon" class="smallinput" type="text" value="<?php $telp=$rows->no_telepon; echo $telp;?>" /></span>
								
							</p>
							
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Jurusan</span>
								<span class="field" style="margin-left:250px"><input disabled="disabled" name="jurusan" class="smallinput" type="text" value="<?php $jurusan=$rows->jurusan; echo $jurusan;?>" /></span>
								
							</p>
							
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Organisasi</span>
								<span class="field" style="margin-left:250px"><input disabled="disabled" name="jurusan" class="mediuminput" type="text" value="<?php if($rows->id_organisasi==1){echo "ITS Online";} else { echo "ITS TV";}?>" />
								
								</span>
							</p>					

							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Jabatan</span>
								<span class="field" style="margin-left:250px">
								<select name="jabatan">
								<option value="1" <?php if($rows->id_jabatan == 1){ echo 'selected'; } ?>>Pimpinan Redaksi</option>
								<option value="2" <?php if($rows->id_jabatan == 2){ echo 'selected'; } ?>>Koordinator Liputan</option>
								<option value="4" <?php if($rows->id_jabatan == 4){ echo 'selected'; } ?>>Redaktur</option>
								<option value="3" <?php if($rows->id_jabatan == 3){ echo 'selected'; } ?>>Anggota</option>
								</select>
								</span>
							</p>
							
							<p style="margin-left:-250px">
								<span for="tittle" style="margin-left:250px">Status</span>
								<span class="field" style="margin-left:250px">
								<select name="status">
								<option value="1" <?php if($rows->status_anggota==1){ echo 'selected'; } ?>>Aktif</option>
								<option value="2" <?php if($rows->status_anggota==2){ echo 'selected'; } ?>>Tidak Aktif</option></select>
								</span>
							</p>
							
                        <p class="stdformbutton" style="margin-left:0px" >
                        	<button class="submit radius2">Ganti Status</button>
                       
						<button class="submit radius2" href="<?php echo base_url().'index.php/home/'?>">Batal</button>
						
						</p>
                    </form>
					</div>
					</div>
					
<?php  } } else { echo 
						 '<div class="notibar msginfo">
							<p>Data belum dipilih.</p>
						  </div>';}?>					